import Vue from 'vue'
import LoginVerifyModal from './LoginVerifyModal.vue'

let loginVerifyModal = (type, userInfo, cb) => {
  let Vm = Vue.extend(LoginVerifyModal)
  let component = new Vm({
    data: {
      type,
      userInfo
    },
    methods: {
      ok: cb
    }
  }).$mount()
  document.querySelector('body').appendChild(component.$el)
  return component
}

export default loginVerifyModal
